package com.zzs.covid19_view.dao;

import com.zzs.covid19_view.common.entity.Statistics;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 文件名: StatisticsMapper
 * 创建者: zzs
 * 创建时间: 2021/8/12 14:16
 * 描述: StatisticsMapper
 */
@Mapper
@Repository
public interface StatisticsMapper {

    /**
     * 新增
     * @param statistics
     * @return
     */
    int insert(Statistics statistics);

    /**
     * 查询最新一条记录
     * @return
     */
    Statistics selectNewestStatistics();


    int deleteById(String oldId);
}
